package net.hn.hnms.biz.equipment.link;

import net.hn.hnms.sys.common.core.constant.ServiceNameConstants;
import net.hn.hnms.sys.common.core.domain.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author 智呈物联 nzw
 * @date 2023/2/9
 */
@Component
@FeignClient(contextId = "SteelyardNowLinkService", value = ServiceNameConstants.MANAGEMENT_STEELYARD_SERVICE,fallback = DeptLinkServiceFallback.class)
public interface SteelyardNowLinkService {

    @RequestMapping(value = "/steelyard/nowLink",method = RequestMethod.GET)
    R<Double> nowLink(@SpringQueryMap String mineCode);

    @RequestMapping(value = "/steelyard/maxForYearLink",method = RequestMethod.GET)
    R<Double> maxForYearLink(@SpringQueryMap String mineCode);
}
